package test1230am;

public class Test03 {
    public static void main(String[] args) {

        // (3)for循环打印2,4,6,8,10
        // (3)for循环打印9,7,5,3,1
    for (int i = 1; i <= 10; i++) {
        if (i % 2 == 0) {
            System.out.println(i);
        }
    }
    for (int i = 10; i >= 1; i--) {
        if (i % 2 != 0) {
            System.out.println(i);
        }
    }

    }
}
